package com.ctg.payroll2.action.sysadmin;

import com.ctg.platform.core.security.SpringSecurityManager;
import com.ctg.platform.util.Page;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class RoleCheckBoxAction extends ActionSupport {

	SpringSecurityManager springSecurityManager;
	Page result;

	public Page getResult() {
		return result;
	}

	public void setResult(Page result) {
		this.result = result;
	}

	public void setSpringSecurityManager(
			SpringSecurityManager springSecurityManager) {
		this.springSecurityManager = springSecurityManager;
	}

	public String getRoleCheckBox() {
//		System.out.println(111);
		result = springSecurityManager.getRoleList(0, 1000);
		return SUCCESS;
	}

}
